<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'css' => [
            'assets/wx/css/address.css',
        ]
    ]);
?>

<body class="gu-address" ng-controller="wx-center-address-add-controller">

<footer class="aui-bar aui-bar-tab" id="footer">
    <div class="aui-padded-l-10 aui-padded-r-10 aui-bar-tab-item">
        <div class="aui-btn aui-btn-warning btn-bg" ng-click="save()">立即保存</div>
    </div>
</footer>

<div class="aui-content aui-margin-b-15">
    <ul class="aui-list aui-form-list gu-address-ipt">
        <li class="aui-list-header">填写地址信息</li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    收货人
                </div>
                <div class="aui-list-item-input">
                    <input type="text" ng-model="addr.name" placeholder="收货人姓名">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    联系电话
                </div>
                <div class="aui-list-item-input">
                    <input type="number" ng-model="addr.phone" placeholder="联系电话">
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    选择省
                </div>
                <div class="aui-list-item-input">
                    <select ng-model="addr.province" dir="rtl" ng-options="pro.value as pro.text for pro in cities">
                        <option value="">--请选择--</option>
                    </select>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    选择市
                </div>
                <div class="aui-list-item-input">
                    <select dir="rtl" ng-model="addr.city" ng-options="city.value as city.text for city in selects.cities">
                        <option value="">--请选择--</option>
                    </select>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    选择区
                </div>
                <div class="aui-list-item-input">
                    <select dir="rtl" ng-model="addr.area" ng-options="area.value as area.text for area in selects.area">
                        <option value="">--请选择--</option>
                    </select>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    详细地址
                </div>
                <div class="aui-list-item-input">
                    <textarea ng-model="addr.address"></textarea>
                </div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-label">
                    设为默认
                </div>
                <div class="aui-list-item-input">
                    <input type="checkbox" ng-model="addr.default" class="aui-switch gu-switch">
                </div>
            </div>
        </li>

    </ul>
</div>



<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'assets/wx/js/center/address/cities.js',
            'assets/wx/js/center/address/add.js'
        ]
    ]);
?>
